﻿namespace SimpleTicketBooking.Config
{
    internal class JwtConfig
    {
        public string? Issuer { get; set; }
        public string? Audience { get; set; }
        /// <summary>
        /// Signature key
        /// </summary>
        public string? SecretKey { get; set; }
        /// <summary>
        /// life time
        /// </summary>
        public int Lifetime { get; set; }
        /// <summary>
        /// renewal time
        /// </summary>
        public int RenewalTime { get; set; }
        /// <summary>
        /// validate life time
        /// </summary>
        public bool ValidateLifetime { get; set; }
        /// <summary>
        /// validate head field
        /// </summary>
        public string? HeadField { get; set; }
        /// <summary>
        /// new Token Head field
        /// </summary>
        public string? ReTokenHeadField { get; set; }
        /// <summary>
        /// jwt validator prefix
        /// </summary>
        public string? Prefix { get; set; }
        /// <summary>
        /// Ignore urls
        /// </summary>
        public List<string>? IgnoreUrls { get; set; }
    }
}
